package cn.yotta.user.web.autoconfiguration.provider;

import javax.servlet.ServletRequest;

/**
 * @author wyaoyao
 * @date 2022/11/8 16:49
 */
public interface TenantResolveProvider {

    Long loadTenantId(ServletRequest request) throws TenantNotResolveException;

    class TenantNotResolveException extends RuntimeException {
        public TenantNotResolveException(String message) {
            super(message);
        }
    }
}
